import request from '@/utils/request'

export const getCategoryApi = (id) => {
  return request.get('/category', { params: { id } })
}
export const getCategoryFilterApi = (id) => {
  return request.get('/category/sub/filter', { params: { id } })
}
export const getSubCategoryApi = (data) => {
  return request.post('/category/goods/temporary', data)
}
